package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

// 圈子、视频交互模块
public interface CommentService {

    //保存
    Integer saveComment(Comment comment);

    //删除
    Integer  removeComment(Long userId,ObjectId publishId,Integer commentType);

    // 分页查询
    PageBeanVo findCommentByPage(ObjectId publishId,Integer commentType,Integer pageNum,Integer pageSize);

    // 查询评论人的信息
    PageBeanVo findUserCommentByPage(Long publishUserId,Integer commentType,Integer pageNum,Integer pageSize);
}
